//
//  PCDApiHideToast.m
//  PCDMPaasBank
//
//  Created by DK on 2021/3/8.
//  Copyright © 2021 Alibaba. All rights reserved.
//

#import "PCDApiHideToast.h"
#import "UIView+Toast.h"
@implementation PCDApiHideToast

- (void)handler:(id)data andContext:(PCDContext *)context ResponseCallback:(WVJBResponseCallback )responseCallback
{
    NSString *callBack = [data objectForKey:@"success"];
    
    UIViewController *viewPage =    context.viewController;;
    [viewPage.view hideToast];
    if (![PCDUtil nilOrEmptyString:callBack]) {
        evaluateJavaScriptOnMainThread(self,callBack,@"");
    }

}

@end
